package com.itheima.controller;

import com.fasterxml.jackson.annotation.JsonProperty;

public class TTSRequest {

    private String text;
    private String prompt;
    private String voice;
    private int speed;
    private double temperature;
    private double top_p;
    private int top_k;
    private int refine_max_new_token;
    private int infer_max_new_token;
    private int text_seed;
    private int skip_refine;
    private int is_stream;
    private int custom_voice;

    // Getters and Setters

    @JsonProperty("text")
    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    @JsonProperty("prompt")
    public String getPrompt() {
        return prompt;
    }

    public void setPrompt(String prompt) {
        this.prompt = prompt;
    }

    @JsonProperty("voice")
    public String getVoice() {
        return voice;
    }

    public void setVoice(String voice) {
        this.voice = voice;
    }

    @JsonProperty("speed")
    public int getSpeed() {
        return speed;
    }

    public void setSpeed(int speed) {
        this.speed = speed;
    }

    @JsonProperty("temperature")
    public double getTemperature() {
        return temperature;
    }

    public void setTemperature(double temperature) {
        this.temperature = temperature;
    }

    @JsonProperty("top_p")
    public double getTop_p() {
        return top_p;
    }

    public void setTop_p(double top_p) {
        this.top_p = top_p;
    }

    @JsonProperty("top_k")
    public int getTop_k() {
        return top_k;
    }

    public void setTop_k(int top_k) {
        this.top_k = top_k;
    }

    @JsonProperty("refine_max_new_token")
    public int getRefine_max_new_token() {
        return refine_max_new_token;
    }

    public void setRefine_max_new_token(int refine_max_new_token) {
        this.refine_max_new_token = refine_max_new_token;
    }

    @JsonProperty("infer_max_new_token")
    public int getInfer_max_new_token() {
        return infer_max_new_token;
    }

    public void setInfer_max_new_token(int infer_max_new_token) {
        this.infer_max_new_token = infer_max_new_token;
    }

    @JsonProperty("text_seed")
    public int getText_seed() {
        return text_seed;
    }

    public void setText_seed(int text_seed) {
        this.text_seed = text_seed;
    }

    @JsonProperty("skip_refine")
    public int getSkip_refine() {
        return skip_refine;
    }

    public void setSkip_refine(int skip_refine) {
        this.skip_refine = skip_refine;
    }

    @JsonProperty("is_stream")
    public int getIs_stream() {
        return is_stream;
    }

    public void setIs_stream(int is_stream) {
        this.is_stream = is_stream;
    }

    @JsonProperty("custom_voice")
    public int getCustom_voice() {
        return custom_voice;
    }

    public void setCustom_voice(int custom_voice) {
        this.custom_voice = custom_voice;
    }
}
